package com.ruoyi.home.mapper;

import java.util.List;
import com.ruoyi.home.domain.home;

public interface homeMapper<goods> {
    /**
     * 查询goods
     *
     * @param goodsId goods主键
     * @return goods
     */
    public goods selectgoodsBygoodsId(Long goodsId);

    /**
     * 查询goods列表
     *
     * @param goods goods
     * @return goods集合
     */
    public List<goods> selectgoodsList(home goods);

    /**
     * 新增goods
     *
     * @param goods goods
     * @return 结果
     */
    public int insertgoods(home goods);

    /**
     * 修改goods
     *
     * @param goods goods
     * @return 结果
     */
    public int updategoods(home goods);

    /**
     * 删除goods
     *
     * @param goodsId goods主键
     * @return 结果
     */
    public int deletegoodsBygoodsId(Long goodsId);

    /**
     * 批量删除goods
     *
     * @param goodsIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletegoodsBygoodsIds(Long[] goodsIds);
}